#include "tools.h"
#include "wind_mgr.h"
#include "page_base.h"
#include "page_mode_add.h"

void MTools::setOnClickListenerToShowPage(ViewGroup *v, pageType pageType)
{
    v->setOnClickListener([pageType](View &){
        d_windMgr->showPage(pageType);
    });
}